/ Assembly List / LJCNetCommon / CodeTokenizer / HasBeginDelimiter

Namespace - LJCNetCommon


Parameters
text - The text value.
beginDelimiter - The begin delimiter.

Returns

True if the begin delimiter is found.

Syntax

C#
public Boolean HasBeginDelimiter(String text, String beginDelimiter)

Check if the text has the begin delimiter. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " /// <summary>This is an XML comment.</summary>";
tokenizer.SetTokens(text);
short tokenIndex = 1;
string token = tokenizer.GetToken(tokenIndex);
bool hasBegin = tokenizer.HasBeginDelimiter(token, "<summary>");
// Value hasBegin is true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.